<template>
	<view class="box">
	
			
		
			
	

	</view>
</template>

<script setup>
	import {
	getkey
	} from '../../api/index.js'
	 export default {
			data() {
				return {
	
				};
			},
			onLoad(option) {
				console.log(111)
				if(option.key){
					getkey({key:option.key}).then((res)=>{
						console.log(res,9999)
						let link = "https://render.alipay.com/p/s/i/?scheme=" + encodeURIComponent(
								"alipays://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode="
							) +
							encodeURIComponent(encodeURIComponent(res.data.url))
						my.ap.navigateToAlipayPage({
							path: link
						})
					})
				}
				
	
			},
			onShow(){
				
			}
		}
		
</script>

<style lang="scss" scoped>

</style>